// import router from "@/router/config";
// import Global from "@/store/Global";
import {Router} from "vue-router";

class LoginAuth {
    auth(router: Router) {
        //@ts-ignore
        router.beforeEach((to, from, next): void => {
            // if (to.path !== "/Login" ) {
            //     if (Global.isAutoLogin) {
            //         next()
            //     } else {
            //         next("/Login")
            //     }
            // }else{
                next()
            // }
        })
    }
}

const Instance = new LoginAuth()
export default Instance;
